#!/bin/bash

number_of_cores=`lscpu -b -p=Core,Socket | grep -v '^#' | sort -u | wc -l`
7z a -t7z -m0=lzma2 -mx=9 -mmt=$number_of_cores -ms=on $1.7z $1

